package com.glory.wxmemsicpda.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author HX
 * @date 2020/12/23
 * @desc
 */
public class StartLotBean implements Serializable {

    /**
     * LOT_ID : TS00001
     * EQP_ID : LC128
     * EQP_RUN_STATE : RUN
     * TRANSID : 11
     * MORE_LOT : Y
     * PRODUCT_LIST : [{"PNAME":"产品型号","PVALUE":"XXXXXXXX"},{"PNAME":"数量","PVALUE":"2100"},{"PNAME":"Recipe名称","PVALUE":"XXXXXXXX"}]
     * MES_MAT_LIST : [{"MATERIAL_ID":"T1","MATERIAL_TYPE":"4KUAISU1","MATERIAL_NAME":"晶粒"},{"MATERIAL_ID":"T2","MATERIAL_TYPE":"4KUAISU2","MATERIAL_NAME":"焊条"},{"MATERIAL_ID":"T3","MATERIAL_TYPE":"4KUAISU3","MATERIAL_NAME":"环氧"}]
     */

    private String LOT_ID;
    private String EQP_ID;
    private String EQP_RUN_STATE;
    private String TRANSID;
    private String EQP_TYPE;
    private String MORE_LOT;//为YES表示显示第二个Lot扫描框，为NO则不显示
    private List<PRODUCTLISTBean> PRODUCT_LIST;
    private List<MESMATLISTBean> MES_MAT_LIST;

    public String getEQP_TYPE() {
        return EQP_TYPE == null ? "" : EQP_TYPE;
    }

    public void setEQP_TYPE(String EQP_TYPE) {
        this.EQP_TYPE = EQP_TYPE;
    }

    public String getMORE_LOT() {
        return MORE_LOT == null ? "" : MORE_LOT;
    }

    public void setMORE_LOT(String MORE_LOT) {
        this.MORE_LOT = MORE_LOT;
    }

    public String getLOT_ID() {
        return LOT_ID == null ? "" : LOT_ID;
    }

    public void setLOT_ID(String LOT_ID) {
        this.LOT_ID = LOT_ID;
    }

    public String getEQP_ID() {
        return EQP_ID == null ? "" : EQP_ID;
    }

    public void setEQP_ID(String EQP_ID) {
        this.EQP_ID = EQP_ID;
    }

    public String getEQP_RUN_STATE() {
        return EQP_RUN_STATE == null ? "" : EQP_RUN_STATE;
    }

    public void setEQP_RUN_STATE(String EQP_RUN_STATE) {
        this.EQP_RUN_STATE = EQP_RUN_STATE;
    }

    public String getTRANSID() {
        return TRANSID == null ? "" : TRANSID;
    }

    public void setTRANSID(String TRANSID) {
        this.TRANSID = TRANSID;
    }

    public List<PRODUCTLISTBean> getPRODUCT_LIST() {
        if (PRODUCT_LIST == null) {
            return new ArrayList<>();
        }
        return PRODUCT_LIST;
    }

    public void setPRODUCT_LIST(List<PRODUCTLISTBean> PRODUCT_LIST) {
        this.PRODUCT_LIST = PRODUCT_LIST;
    }

    public List<MESMATLISTBean> getMES_MAT_LIST() {
        if (MES_MAT_LIST == null) {
            return new ArrayList<>();
        }
        return MES_MAT_LIST;
    }

    public void setMES_MAT_LIST(List<MESMATLISTBean> MES_MAT_LIST) {
        this.MES_MAT_LIST = MES_MAT_LIST;
    }

    public static class PRODUCTLISTBean {
        /**
         * PNAME : 产品型号
         * PVALUE : XXXXXXXX
         */

        private String PNAME;
        private String PVALUE;

        public String getPNAME() {
            return PNAME == null ? "" : PNAME;
        }

        public void setPNAME(String PNAME) {
            this.PNAME = PNAME;
        }

        public String getPVALUE() {
            return PVALUE == null ? "" : PVALUE;
        }

        public void setPVALUE(String PVALUE) {
            this.PVALUE = PVALUE;
        }
    }
        public static class MESMATLISTBean {
            /**
             * MATERIAL_ID : T1
             * MATERIAL_TYPE : 4KUAISU1
             * MATERIAL_NAME : 晶粒
             */

            private String MATERIAL_ID;
            private String MATERIAL_TYPE;
            private String MATERIAL_NAME;

            public String getMATERIAL_ID() {
                return MATERIAL_ID == null ? "" : MATERIAL_ID;
            }

            public void setMATERIAL_ID(String MATERIAL_ID) {
                this.MATERIAL_ID = MATERIAL_ID;
            }

            public String getMATERIAL_TYPE() {
                return MATERIAL_TYPE == null ? "" : MATERIAL_TYPE;
            }

            public void setMATERIAL_TYPE(String MATERIAL_TYPE) {
                this.MATERIAL_TYPE = MATERIAL_TYPE;
            }

            public String getMATERIAL_NAME() {
                return MATERIAL_NAME == null ? "" : MATERIAL_NAME;
            }

            public void setMATERIAL_NAME(String MATERIAL_NAME) {
                this.MATERIAL_NAME = MATERIAL_NAME;
            }
        }
    }
